package edu.sctu.practice.class01.renpingan.test01.mytime;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Maining {
    public static void main(String[] args) {
        MyTime myTime = new MyTime(5,20,30);
        myTime.Diaplay();
        //增加时间
        myTime.addHour(2);
        myTime.addMinute(10);
        myTime.addSecond(20);
        myTime.Diaplay();
        //减少时间
        myTime.subHour(1);
        myTime.subMinute(20);
        myTime.subSecond(10);
        myTime.Diaplay();

    }
}
